﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using CarInfor.UI;

using CarInfor.DAL;

namespace CarInfor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            //Application.Run(new Test());
            //return;

            MyGlobal.shinUI1 = new DotNetSkin.SkinUI();
            MyGlobal.shinUI1.SkinFile = Application.StartupPath + "\\Skins\\" + MyGlobal.ShinkFile;
            MyGlobal.shinUI1.Active = true;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            frmLogin login = new frmLogin();
            if (login.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new CarInfor.UI.frmMain());
            }
        }
    }
}
